package utils;

import bean.ViewOrdenCompra;

import com.thoughtworks.xstream.XStream;

public class OrdenCompraConverter {
	private static XStream xs = new XStream();
	
	
	
	public static ViewOrdenCompra fromXmlToObject(String xml){
		return (ViewOrdenCompra)xs.fromXML(xml);
	}
	
	public static String fromObjectToXML(ViewOrdenCompra ordenCompra){
		return xs.toXML(ordenCompra);
	}
	
}

